<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Company extends Model
{
    use HasFactory;

    protected $fillable = ['title','logo','address','uscc','contacts','scale','mobile','status','ding_key','ding_secret','number_prefix','number_len'];
    const POSTONLY = ['title','logo','address','uscc','contacts','scale','mobile','status','ding_key','ding_secret','number_prefix','number_len'];

    protected $hidden = [
        'ding_secret',
    ];

    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }

}
